package cn.com.recode.e继承;

public class NewReleasePrice extends Price {

    @Override
    int getPriceCode() {
        return Movie.NEW_RELEASE;
    }

    @Override
    public double getCharge(int daysRented){
        double thisAmout = 0;
        thisAmout += daysRented * 3;
        return thisAmout;
    }

    @Override
    public double getFrenquentRenterPoints(int daysRented) {
        return (daysRented > 1) ? 2 : 1;
    }
}
